package com.facebank.usersupport.mapper.usersupport.usersupport;

import com.facebank.usersupport.dto.ProfitDto;
import com.facebank.usersupport.model.AssAgent;
import com.facebank.usersupport.model.Associator;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.servlet.http.HttpSession;
import java.util.List;

@Repository
public interface AssAgentMapper {
    int deleteByPrimaryKey(Long associatorId);

    int insert(AssAgent record);

    int insertSelective(AssAgent record);

    AssAgent selectByPrimaryKey(Long associatorId);

    int updateByPrimaryKeySelective(AssAgent record);

    int updateByPrimaryKey(AssAgent record);

    List<Associator> selectAssociatorList(@Param("associatorName") String associatorName, @Param("phone") String phone, @Param("status") Short status,
                                          @Param("startTime") Long startTime, @Param("endTime") Long endTime , @Param("userId") Long userId);


    List<ProfitDto> selectProfit(@Param("phone") String phone,@Param("startTime") Long startTime,@Param("endTime") Long endTime ,@Param("userId") Long assId);



}